<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hell');
Route::post('login', 'User/login')->allowCrossDomain();
Route::post('changePass', 'User/changePass')->allowCrossDomain();
Route::post('memberAdd', 'member/add')->allowCrossDomain();
Route::post('categoryAdd', 'category/add')->allowCrossDomain();
Route::put('inboundAdd', 'inbound/add')->allowCrossDomain();
Route::post('dictionaryTypeAdd', 'dictionaryType/add')->allowCrossDomain();
Route::post('dictionaryAdd', 'dictionary/add')->allowCrossDomain();
Route::post('goodsAdd', 'goods/add')->allowCrossDomain();
Route::put('memberEdit', 'member/edit')->allowCrossDomain();
Route::get('memberShow/:id', 'member/edit')->allowCrossDomain();
Route::get('goodsShow/:id', 'goods/edit')->allowCrossDomain();
Route::get('memberList', 'member/getList')->allowCrossDomain();
Route::get('categoryList/:id', 'category/getList')->allowCrossDomain();
Route::get('dictionaryList', 'dictionary/getList')->allowCrossDomain();
Route::get('inboundList', 'inbound/getList')->allowCrossDomain();
Route::get('typeList', 'workType/getList')->allowCrossDomain();
Route::get('dictionaryTypeList', 'dictionaryType/getList')->allowCrossDomain();
Route::get('goodsList', 'goods/getList')->allowCrossDomain();
Route::delete('memberDelete/:id', 'member/delete')->allowCrossDomain();
Route::delete('dictionaryDelete/:id', 'dictionary/delete')->allowCrossDomain();
